From c70b65f0eb651cfbb4154f2b1b35cc1359db3e91 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Fri, 28 Jan 2011 10:25:17 +0100 Subject: [PATCH] Document @binding-set and the gtk-key-bindings css parser property --- gtk/gtkcssprovider.c | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gtk/gtkcssprovider.c b/gtk/gtkcssprovider.c index 95e38073fa..df805871d9 100644 --- a/gtk/gtkcssprovider.c +++ b/gtk/gtkcssprovider.c @@ -291,6 +291,28 @@ * * * + * In order to extend key bindings affecting different widgets, GTK+ + * supports the @binding-set rule to parse a set of bind/unbind + * directives, see #GtkBindingSet for the syntax supported + * + * + * Using the @binding rule + * + * @binding-set binding-set1 { + * bind "<alt>Left" { "move-cursor" (visual-positions, -3, 0) }; + * unbind "End"; + * }; + * + * @binding-set binding-set1 { + * bind "<alt>Right" { "move-cursor" (visual-positions, 3, 0) }; + * }; + * + * GtkEntry { + * gtk-binding-set: binding-set1, binding-set2; + * } + * + * + * * GTK+ also supports an additional @define-color rule, in order * to define a color name which may be used instead of color numeric * representations. Also see the #GtkSettings:gtk-color-scheme setting @@ -666,6 +688,13 @@ * transition: 1s linear loop; * * + * + * gtk-key-bindings + * binding set name list + * internal use only + * gtk-bindings: binding1, binding2, ...; + * + * * * * -- 2.30.2